package com.crl.net.utils.air
{
	import air.update.ApplicationUpdaterUI;
	import air.update.events.UpdateEvent;
	
	import flash.filesystem.File;
	
	public class TestUpdate
	{
		private var updater : ApplicationUpdaterUI;
		public function TestUpdate()
		{
		}
		
		private function check():void		
		{
			var confFile:File= File.applicationDirectory.resolvePath("updateConfig.xml")	;
			updater = new	ApplicationUpdaterUI()	;
			updater.configurationFile= confFile;
			updater.addEventListener(UpdateEvent.INITIALIZED	, onInit)	;
			updater.initialize();
		}
		
		
		private function	onInit(event:UpdateEvent):void{
			updater.checkNow();
		}
		
	}
	
}